package com.demo.test.other;

import java.util.UUID;

public class AppIdGeneratorUUID {
    public static String generateAppId() {
        UUID uuid = UUID.randomUUID();
        // 去除UUID字符串表示中的连字符
        String appId = uuid.toString().replace("-", "");
        return appId.substring(0, 16);
    }

    public static void main(String[] args) {
        String appId = generateAppId();
        System.out.println("Generated App ID: " + appId);
    }
}